package oli.plugpack.events
{
	import flash.events.Event;
	
	import oli.plugpack.core.PlugIn;

	public class PlugLoadEvent extends Event
	{
		public static const ALL_COMPLETE:String = "all complete";
		public static const PROGRESS:String = "progress";
		
		public var bytesLoaded:uint;
		
		private var _plugins:Vector.<PlugIn>;
		
		public function PlugLoadEvent(plugins:Vector.<PlugIn>,type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			_plugins = plugins;
			super(type, bubbles, cancelable);
		}
		override public function toString() : String
		{
			return formatToString("PlugLoadEvent","plugins","bytesLoaded","eventPhase","type","bubbles","cancelable");
		}
		override public function clone() : Event
		{
			var ple:PlugLoadEvent = new PlugLoadEvent(plugins,type,bubbles,cancelable);
			ple.bytesLoaded = bytesLoaded;
			return ple;
		}
		public function get plugins():Vector.<PlugIn>
		{
			return _plugins;
		}

		


	}
}